a11y: ARIA's "presentation" role maps to ATSPI_ROLE_SECTION
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 5 Nov 2020 13:14:08 +0000 (13:14 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 5 Nov 2020 13:14:08 +0000 (13:14 +0000)
See the mapping role table in the Core-AAM normative document:

https://w3c.github.io/core-aam/#mapping_role_table

gtk/a11y/gtkatspiutils.c

index fad5ee10fd812ddc8f6e598a7329f05354664fc0..7ec3193b9bee2a5c2c41335da59dc0361a50a3f3 100644 (file)
@@ -167,7 +167,7 @@ gtk_accessible_role_to_atspi_role (GtkAccessibleRole role)
       return ATSPI_ROLE_OPTION_PANE;
 
     case GTK_ACCESSIBLE_ROLE_PRESENTATION:
-      return ATSPI_ROLE_DOCUMENT_PRESENTATION;
+      return ATSPI_ROLE_SECTION;
 
     case GTK_ACCESSIBLE_ROLE_PROGRESS_BAR:
       return ATSPI_ROLE_PROGRESS_BAR;